package com.tjshop.android.model;

import org.json.JSONArray;
import org.json.JSONObject;

public class Comment extends BaseObject {
	    private String user;// "user":"tj111",
	     private String content;//"content":"很好",     
	     private int rank;//"rank":5,     
	     private String time;//"time":2013-01-05   
	     
		public String getUser() {
			return user;
		}
		public void setUser(String user) {
			this.user = user;
		}
		public String getContent() {
			return content;
		}
		public void setContent(String content) {
			this.content = content;
		}
		public int getRank() {
			return rank;
		}
		public void setRank(int rank) {
			this.rank = rank;
		}
		public String getTime() {
			return time;
		}
		public void setTime(String time) {
			this.time = time;
		}
		@Override
		public void parse(JSONObject data) {
			setUser(getString(data, "user"));
			setRank(getInt(data, "rank"));
			setTime(getString(data, "time"));
			setContent(getString(data, "content"));
		}
		@Override
		public void parse(JSONArray data) {
			// TODO Auto-generated method stub
			
		}

}
